If someone becomes a ghost, does that mean they are a bad person?

If someone becomes a ghost, does that mean they are a bad person?